home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6344 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 66 63 | 2e 68 70 2e 63 6f 6d 21 |Path: fc|.hp.com!|
|00000010| 6e 65 77 73 0a 46 72 6f | 6d 3a 20 52 69 63 6b 20 |news.Fro|m: Rick |
|00000020| 57 65 6c 6c 73 20 3c 72 | 77 65 6c 6c 73 40 62 6c |Wells <r|wells@bl|
|00000030| 6b 62 65 61 72 2e 66 63 | 2e 68 70 2e 63 6f 6d 3e |kbear.fc|.hp.com>|
|00000040| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000050| 70 2e 6c 61 6e 67 2e 63 | 0a 53 75 62 6a 65 63 74 |p.lang.c|.Subject|
|00000060| 3a 20 52 65 3a 20 48 45 | 4c 50 3a 20 49 6c 6c 65 |: Re: HE|LP: Ille|
|00000070| 67 61 6c 20 50 6f 69 6e | 74 65 72 20 41 72 69 74 |gal Poin|ter Arit|
|00000080| 68 6d 65 74 69 63 0a 44 | 61 74 65 3a 20 46 72 69 |hmetic.D|ate: Fri|
|00000090| 2c 20 32 33 20 46 65 62 | 20 31 39 39 36 20 31 39 |, 23 Feb| 1996 19|
|000000a0| 3a 32 30 3a 34 34 20 2d | 30 37 30 30 0a 4f 72 67 |:20:44 -|0700.Org|
|000000b0| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 48 65 77 6c 65 |anizatio|n: Hewle|
|000000c0| 74 74 2d 50 61 63 6b 61 | 72 64 20 46 6f 72 74 20 |tt-Packa|rd Fort |
|000000d0| 43 6f 6c 6c 69 6e 73 20 | 53 69 74 65 0a 4d 65 73 |Collins |Site.Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 32 45 37 35 |sage-ID:| <312E75|
|000000f0| 46 43 2e 37 36 43 45 40 | 62 6c 6b 62 65 61 72 2e |FC.76CE@|blkbear.|
|00000100| 66 63 2e 68 70 2e 63 6f | 6d 3e 0a 52 65 66 65 72 |fc.hp.co|m>.Refer|
|00000110| 65 6e 63 65 73 3a 20 3c | 34 67 6a 30 75 67 24 37 |ences: <|4gj0ug$7|
|00000120| 33 30 40 6e 65 77 73 2e | 6f 6e 65 2e 6e 65 74 3e |30@news.|one.net>|
|00000130| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000140| 73 74 3a 20 62 6c 6b 62 | 65 61 72 2e 66 63 2e 68 |st: blkb|ear.fc.h|
|00000150| 70 2e 63 6f 6d 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |p.com.Mi|me-Versi|
|00000160| 6f 6e 3a 20 31 2e 30 0a | 43 6f 6e 74 65 6e 74 2d |on: 1.0.|Content-|
|00000170| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|00000180| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|00000190| 69 69 0a 43 6f 6e 74 65 | 6e 74 2d 54 72 61 6e 73 |ii.Conte|nt-Trans|
|000001a0| 66 65 72 2d 45 6e 63 6f | 64 69 6e 67 3a 20 37 62 |fer-Enco|ding: 7b|
|000001b0| 69 74 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |it.X-Mai|ler: Moz|
|000001c0| 69 6c 6c 61 20 32 2e 30 | 20 28 58 31 31 3b 20 49 |illa 2.0| (X11; I|
|000001d0| 3b 20 48 50 2d 55 58 20 | 41 2e 30 39 2e 30 37 20 |; HP-UX |A.09.07 |
|000001e0| 39 30 30 30 2f 37 31 35 | 29 0a 54 6f 3a 20 4f 72 |9000/715|).To: Or|
|000001f0| 65 6e 20 4c 65 76 69 6e | 20 3c 6f 72 65 6e 40 6f |en Levin| <oren@o|
|00000200| 6e 65 2e 6e 65 74 3e 0a | 0a 4f 72 65 6e 20 4c 65 |ne.net>.|.Oren Le|
|00000210| 76 69 6e 20 77 72 6f 74 | 65 3a 0a 3e 20 0a 3e 20 |vin wrot|e:.> .> |
|00000220| 49 20 77 61 73 20 77 6f | 6e 64 65 72 69 6e 67 20 |I was wo|ndering |
|00000230| 69 66 20 73 6f 6d 65 6f | 6e 65 20 63 6f 75 6c 64 |if someo|ne could|
|00000240| 20 68 65 6c 70 20 6d 65 | 2e 20 49 27 6d 20 69 6e | help me|. I'm in|
|00000250| 20 74 68 65 20 6d 69 64 | 73 74 20 6f 66 20 6c 65 | the mid|st of le|
|00000260| 61 72 6e 69 6e 67 0a 3e | 20 43 2f 43 2b 2b 20 61 |arning.>| C/C++ a|
|00000270| 6e 64 20 61 6d 20 74 72 | 79 69 6e 67 20 74 6f 20 |nd am tr|ying to |
|00000280| 70 72 6f 67 72 61 6d 20 | 74 68 65 20 65 78 61 6d |program |the exam|
|00000290| 70 6c 65 73 20 69 6e 20 | 41 6e 64 72 65 77 20 42 |ples in |Andrew B|
|000002a0| 69 72 6e 73 74 6f 63 6b | 20 61 6e 64 20 4a 6f 68 |irnstock| and Joh|
|000002b0| 6e 0a 3e 20 52 65 78 27 | 73 20 62 6f 6f 6b 20 22 |n.> Rex'|s book "|
|000002c0| 50 72 61 63 74 69 63 61 | 6c 20 41 6c 67 6f 72 69 |Practica|l Algori|
|000002d0| 74 68 79 6d 73 20 66 6f | 72 20 50 72 6f 67 72 61 |thyms fo|r Progra|
|000002e0| 6d 65 72 73 2e 22 20 49 | 20 61 6d 20 75 73 69 6e |mers." I| am usin|
|000002f0| 67 20 53 79 6d 65 6e 74 | 65 63 27 73 0a 3e 20 54 |g Syment|ec's.> T|
|00000300| 68 69 6e 6b 20 43 2b 2b | 20 28 76 20 36 20 2d 20 |hink C++| (v 6 - |
|00000310| 4d 61 63 29 2e 0a 3e 20 | 54 68 65 20 66 6f 6c 6c |Mac)..> |The foll|
|00000320| 6f 77 69 6e 67 20 63 6f | 64 65 20 69 73 20 67 69 |owing co|de is gi|
|00000330| 76 69 6e 67 20 6d 65 20 | 61 20 22 69 6c 6c 65 67 |ving me |a "illeg|
|00000340| 61 6c 20 70 6f 69 6e 74 | 65 72 20 61 72 69 74 68 |al point|er arith|
|00000350| 6d 65 74 69 63 22 20 65 | 72 72 6f 72 2e 0a 3e 20 |metic" e|rror..> |
|00000360| 49 27 6d 20 74 72 79 69 | 6e 67 20 74 6f 20 73 74 |I'm tryi|ng to st|
|00000370| 72 69 70 20 74 68 65 20 | 63 61 72 72 61 67 65 20 |rip the |carrage |
|00000380| 72 65 74 75 72 6e 20 6f | 66 66 20 6f 66 20 61 20 |return o|ff of a |
|00000390| 6c 69 6e 65 20 6f 66 20 | 74 65 78 74 20 72 65 61 |line of |text rea|
|000003a0| 64 20 66 72 6f 6d 20 61 | 0a 3e 20 66 69 6c 65 2e |d from a|.> file.|
|000003b0| 0a 3e 20 0a 3e 20 54 49 | 41 20 66 6f 72 20 74 68 |.> .> TI|A for th|
|000003c0| 65 20 68 65 6c 70 2e 0a | 3e 20 4f 72 65 6e 20 4c |e help..|> Oren L|
|000003d0| 65 76 69 6e 0a 3e 20 6f | 72 65 6e 40 6f 6e 65 2e |evin.> o|ren@one.|
|000003e0| 6e 65 74 0a 3e 20 0a 3e | 20 3d 3d 3d 20 63 6f 64 |net.> .>| === cod|
|000003f0| 65 20 73 6e 69 70 70 65 | 74 20 3d 3d 3d 0a 3e 20 |e snippe|t ===.> |
|00000400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000410| 77 68 69 6c 65 20 28 21 | 20 66 65 6f 66 20 28 66 |while (!| feof (f|
|00000420| 69 6e 29 29 0a 3e 20 20 | 20 20 20 20 20 20 20 20 |in)).> | |
|00000430| 20 20 20 20 20 20 20 7b | 0a 3e 20 20 20 20 20 20 | {|.> |
|00000440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000450| 20 20 20 2f 2a 20 72 65 | 61 64 20 61 20 72 65 63 | /* re|ad a rec|
|00000460| 6f 72 64 20 2a 2f 0a 3e | 20 20 20 20 20 20 20 20 |ord */.>| |
|00000470| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000480| 20 69 66 20 28 66 67 65 | 74 73 20 28 62 75 66 66 | if (fge|ts (buff|
|00000490| 65 72 2c 20 31 32 37 2c | 20 66 69 6e 29 20 3d 3d |er, 127,| fin) ==|
|000004a0| 20 4e 55 4c 4c 29 0a 3e | 20 20 20 20 20 20 20 20 | NULL).>| |
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004c0| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.|
|000004d0| 3e 20 0a 3e 20 20 20 20 | 20 20 20 20 20 20 20 20 |> .> | |
|000004e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|000004f0| 67 65 74 20 72 69 64 20 | 6f 66 20 74 68 65 20 74 |get rid |of the t|
|00000500| 72 61 69 6c 69 6e 67 20 | 63 61 72 72 61 67 65 20 |railing |carrage |
|00000510| 72 65 74 75 72 6e 20 2a | 2f 0a 3e 20 20 20 20 20 |return *|/.> |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 20 20 20 20 62 75 66 66 | 65 72 20 5b 73 74 72 6c | buff|er [strl|
|00000540| 65 6e 20 28 62 75 66 66 | 65 72 29 20 2d 20 31 5d |en (buff|er) - 1]|
|00000550| 20 3d 20 22 5c 30 22 3b | 0a 0a 54 68 65 20 6c 61 | = "\0";|..The la|
|00000560| 73 74 20 6c 69 6e 65 20 | 79 6f 75 20 6c 69 73 74 |st line |you list|
|00000570| 65 64 20 73 65 74 73 20 | 74 68 65 20 6c 61 73 74 |ed sets |the last|
|00000580| 20 63 68 61 72 61 63 74 | 65 72 20 74 6f 20 61 20 | charact|er to a |
|00000590| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 0a 73 |pointer |to the.s|
|000005a0| 74 72 69 6e 67 0a 22 5c | 30 22 2e 20 43 68 61 6e |tring."\|0". Chan|
|000005b0| 67 65 20 74 68 65 20 64 | 6f 75 62 6c 65 20 71 75 |ge the d|ouble qu|
|000005c0| 6f 74 65 73 20 28 22 29 | 20 74 6f 20 73 69 6e 67 |otes (")| to sing|
|000005d0| 6c 65 20 71 75 6f 74 65 | 73 20 28 27 29 20 61 6e |le quote|s (') an|
|000005e0| 64 20 79 6f 75 27 6c 6c | 20 62 65 0a 73 65 74 74 |d you'll| be.sett|
|000005f0| 69 6e 67 0a 69 74 20 74 | 6f 20 74 68 65 20 63 68 |ing.it t|o the ch|
|00000600| 61 72 61 63 74 65 72 20 | 27 5c 30 27 2e 0a 0a 54 |aracter |'\0'...T|
|00000610| 72 79 20 74 68 61 74 2c | 20 52 69 63 6b 0a |ry that,| Rick. |
+--------+-------------------------+-------------------------+--------+--------+